package com.lt.service;

import com.lt.pojo.AppInfo;

import java.util.List;

public interface AppInfoService {

    List<AppInfo> selectAllByCondation(String softwareName, Integer status, Integer categoryLevel1, Integer categoryLevel2, Integer categoryLevel3, Integer devId, Integer flatformId, Integer from, Integer pageSize);


    //查询总数量
    Integer selectTotalNumber();

    //查询商品信息，根据id或者apk名称
    AppInfo getAppInfo(Integer id, String APKName);

    //添加
    boolean add(AppInfo appInfo);

    //修改
    boolean modify(AppInfo appInfo);

     AppInfo getAppInfoById( Integer id);

    Integer getAppInfoCount(String softwareName, Integer status, Integer categoryLevel1, Integer categoryLevel2, Integer categoryLevel3, Integer flatformId, Integer devId);

    int updateApp(AppInfo appInfo);

    Integer deleteAppInfById(Integer id);

    boolean appsysUpdateSaleStatusByAppId(AppInfo appInfo);

    int updateAppInfoStatus(Integer status, Integer id);
}
